/*
	Copyright (C) 2008 Demiurg-HG
	
	This program is free software; you can redistribute it and/or
	modify it under the terms of the GNU General Public License
	as published by the Free Software Foundation; either version 2
	of the License, or (at your option) any later version.
	
	This program is distributed in the hope that it will be useful,
	but WITHOUT ANY WARRANTY; without even the implied warranty of
	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
	GNU General Public License for more details.
	
	You should have received a copy of the GNU General Public License
	along with this program; if not, write to the Free Software
	Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
*/
// win_dbgout.cpp - 


#include "..\global.h"
#include "win_dbgout.h"	
#include <crtdbg.h>


/*-----------------------------------------------------------------------------
	EXPORT STUFF
-----------------------------------------------------------------------------*/
DLL_EXPORT	IConsole	*CreateConsole(void)
{
	return new EWinDebugOutput();
}


DLL_EXPORT	void	DestroyConsole(IConsole *con)
{
	delete con;
}


/*-----------------------------------------------------------------------------
	EWinDebugOutput
-----------------------------------------------------------------------------*/

EWinDebugOutput::EWinDebugOutput(void)
{		  
}


EWinDebugOutput::~EWinDebugOutput(void)
{
}


void EWinDebugOutput::ConsoleOutput(const char *text)
{
#ifdef _DEBUG
	_CrtDbgReport(_CRT_WARN, 0, 0, "%s", text);
#endif
}


const char *EWinDebugOutput::ConsoleInput(void)
{
	return NULL;
}


void EWinDebugOutput::Clear(void)
{
}


char EWinDebugOutput::Wait(void)
{
	return '\0';
}


const char *EWinDebugOutput::GetBufferLine(uint line)
{
	return NULL;
}


const char *EWinDebugOutput::GetCmdLineText(void)
{
	return "";
}


void EWinDebugOutput::SetCmdLineText(const char *text)
{
}








	